﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NBusiness.CodeDom.Services;

namespace NBusiness.CodeDom
{
    [Serializable]
    public abstract class EntityValidationArgument : EntityCompileUnit, IHasParent
    {
        public TypeData Type { get; set; }

        public string Name { get; set; }
        public string Value { get; set; }

        private EntityValidation _parent;
        public IHasParent Parent
        {
            get { return _parent; }
            set { _parent = (EntityValidation)value; }
        }

        public override string ToString()
        {
            return Name + " : " + Value.ToString();
        }
    }
}
